<script>
window.onload = function() {
  var oFCKeditor = new FCKeditor('term_definition');
  oFCKeditor.BasePath = "/javascripts/fckeditor/";
  oFCKeditor.Config["CustomConfigurationsPath"] =
    '<%= javascript_path "railsfck.js" %>';
  oFCKeditor.ReplaceTextarea();
}
</script>

<%= error_messages_for :term %>

<% form_for(@term) do |f| %>
  <p>
    <b>Термин</b><br />
    <%= f.text_field :term, :size => 100 %>
  </p>

  <p>
    <b>Определение</b><br />
    <%= f.text_area :definition %>
  </p>

  <p>
    <%= f.submit form_submit %>
  </p>
<% end %>